#导包
from rest_framework import serializers

from myapp.models import User,Pics,Goods,Good,Comment





# 用户类的序列化
class UserSer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'

#  幻灯片
class PicsSer(serializers.ModelSerializer):
    class Meta:
        model = Pics
        fields = '__all__'

# 商品表
class GoodsSer(serializers.ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'


# 评论表
class CommentSer(serializers.ModelSerializer):
    class Meta:
        model = Comment
        fields = '__all__'








# 考试商品表
class GoodSer(serializers.ModelSerializer):
    class Meta:
        model = Good
        fields = '__all__'

